var a = getApp(), e = require("../../utils/api.js");

Page({
    data: {
        cashInfo: ""
    },
    onLoad: function(a) {},
    onShow: function(o) {
        var t = this, n = a.globalData.openid, l = getCurrentPages(), s = (l[l.length - 1], 
        l[l.length - 2]);
        void 0 != s && t.setData({
            openid: n,
            prevInfo: s.data.recommendInfo
        }), e.seeTeamData({
            openid: a.globalData.openid
        }).then(function(a) {
            console.log(a);
            var e = parseFloat(parseFloat(a.data.all_commission) + parseFloat(a.data.all_head_send_price)).toFixed(2);
            t.setData({
                cashInfo: a.data,
                allmoney: e
            });
        });
    }
});